package ua.kpi_java_training.morochenets.module2;

/**
 * @author Ari100tell
 * @data: 21.06.13
 * @time: 3:32
 */
public class LifeCycles {
    private int numberCycles;
    private int length;
    private int width;

    public LifeCycles(int numberCycles, int length, int width) {
        this.numberCycles = numberCycles;
        this.length = length;
        this.width = width;
    }

    public int[][] runModel(int[][] placesForLife) {
        Position position = new Position(length, width);
        for (int i = 0; i < numberCycles; i++) {
            placesForLife = position.changePosition(placesForLife);
            System.out.println("Шаг" + i);
        }
        return placesForLife;
    }


}
